import { createApp } from 'vue'
import App from './App.vue'
//路由
import router from './router'
//存储
import store from './store'

//引入element-plus依赖
import ElementPlus from 'element-plus';
import 'element-plus/theme-chalk/index.css';

//引入axios的依赖
import axios from 'axios'
import VueAxios from 'vue-axios'

// 引入自定义axios.js
import "./axios"
//引入permission.js
import "./permission"

//markdown v3======v-md-editor
import VueMarkdownEditor from '@kangc/v-md-editor';
import '@kangc/v-md-editor/lib/style/base-editor.css';
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';

import Prism from 'prismjs';

VueMarkdownEditor.use(vuepressTheme, {
    Prism,
});
//v-md-editor注册
const app = createApp(/*...*/);

createApp(App).use(store).use(router).use(ElementPlus).use(VueAxios,axios).use(VueMarkdownEditor).mount('#app')
